Use a variable in the expanding button exercise above, so that once the button has reached it maximum size, it starts shrinking on successive clicks (rather than coming back to original size at once). Once it reaches the minimum size, it should again start expanding, and so on.